package com.group3.Feign;

import com.group3.common.result.ApiResponse;
import com.group3.config.FeignConfiguration;
import com.group3.model.LiveRoom;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "ls-service-liveroom", configuration = FeignConfiguration.class)
public interface LiveRoomServiceFeign {
    @GetMapping("/live/room/getByAnchorIds")
    ApiResponse<List<LiveRoom>> getLiveRoomsByAnchorIds(@RequestParam List<Integer> anchorIds);
}